package com.wargameproject;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class DemarrerUnePartie extends Activity implements OnClickListener {

	Button dup1;
	Button dup2;
	Button dup3;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.demarrer_une_partie);

		dup1 = (Button) findViewById(R.id.demarrerunepartie1);
		dup1.setOnClickListener(this);
		dup2 = (Button) findViewById(R.id.demarrerunepartie2);
		dup2.setOnClickListener(this);
		dup3 = (Button) findViewById(R.id.demarrerunepartie3);
		dup3.setOnClickListener(this);

	}

	public void onClick(View v) {

		switch (v.getId()) {
		case R.id.demarrerunepartie1:
			Intent intent1 = new Intent(DemarrerUnePartie.this,
					ChoixModeDeJeu.class);
			startActivity(intent1);
			break;
		/*
		 * case R.id.demarrerunepartie2: Intent intent2 = new
		 * Intent(DemarrerUnePartie.this, ???.class); startActivity(intent2);
		 * break;
		 */
		case R.id.demarrerunepartie3:
			Intent intent3 = new Intent(DemarrerUnePartie.this,
					MainActivity.class);
			startActivity(intent3);
			break;

		default:
			break;
		}

	}

}